﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace KioskosJugandoLimpio.Admin
{
    public partial class Encuestas : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void GridView1_RowCommand(object sender, GridViewCommandEventArgs e)
        {
            if (e.CommandName == "editarContenido") {
                divEdit.InnerHtml = e.CommandArgument.ToString();
                Classes.Encuesta en = new Classes.Encuesta(int.Parse(e.CommandArgument.ToString()));
                en.mode = Classes.Modes.Edit;
                divEdit.Controls.Add(en.form);

            }
        }
    }
}